package com.quxue.im.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author jinken
 * @since 2023-11-13
 */
@TableName("chat_user")
public class ChatUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 微聊号码
     */
    private String chatNo;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 用户token
     */
    private String token;

    /**
     * 性别1男0女
     */
    private String gender;

    /**
     * 头像
     */
    private String portrait;

    /**
     * 介绍
     */
    private String intro;

    /**
     * 封面
     */
    private String cover;

    /**
     * 省份
     */
    private String provinces;

    /**
     * 城市
     */
    private String city;

    /**
     * 盐
     */
    private String salt;

    /**
     * 密码
     */
    private String password;

    /**
     * 注册时间
     */
    private LocalDateTime createTime;

    /**
     * 版本信息
     */
    private String version;

    /**
     * 注销0正常null注销
     */
    private Boolean deleted;

    /**
     * 注销时间
     */
    private LocalDateTime deletedTime;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getChatNo() {
        return chatNo;
    }

    public void setChatNo(String chatNo) {
        this.chatNo = chatNo;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getPortrait() {
        return portrait;
    }

    public void setPortrait(String portrait) {
        this.portrait = portrait;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    public String getProvinces() {
        return provinces;
    }

    public void setProvinces(String provinces) {
        this.provinces = provinces;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public LocalDateTime getDeletedTime() {
        return deletedTime;
    }

    public void setDeletedTime(LocalDateTime deletedTime) {
        this.deletedTime = deletedTime;
    }

    @Override
    public String toString() {
        return "ChatUser{" +
            "userId = " + userId +
            ", phone = " + phone +
            ", chatNo = " + chatNo +
            ", nickName = " + nickName +
            ", token = " + token +
            ", gender = " + gender +
            ", portrait = " + portrait +
            ", intro = " + intro +
            ", cover = " + cover +
            ", provinces = " + provinces +
            ", city = " + city +
            ", salt = " + salt +
            ", password = " + password +
            ", createTime = " + createTime +
            ", version = " + version +
            ", deleted = " + deleted +
            ", deletedTime = " + deletedTime +
        "}";
    }
}
